/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package air.eb;

/**
 *
 * @author Keith Augustsson
 */
public class Passenger {

    private String pNr;
    private String name;
    private int seatNr;
    private char seatRow;

    public Passenger() {
    }

    public Passenger(String pNr, String name, int seatNr, char seatRow) {
        this.pNr = pNr;
        this.name = name;
        this.seatNr = seatNr;
        this.seatRow = seatRow;
    }

    public String getName() {
        return name;
    }

    public String getpNr() {
        return pNr;
    }

    public int getSeatNr() {
        return seatNr;
    }

    public char getSeatRow() {
        return seatRow;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setpNr(String pNr) {
        this.pNr = pNr;
    }

    public void setSeatNr(int seatNr) {
        this.seatNr = seatNr;
    }

    public void setSeatRow(char seatRow) {
        this.seatRow = seatRow;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Passenger other = (Passenger) obj;
        if ((this.pNr == null) ? (other.pNr != null) : !this.pNr.equals(other.pNr)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 29 * hash + (this.pNr != null ? this.pNr.hashCode() : 0);
        return hash;
    }
}
